package factory.components;

import org.eclipse.swt.SWT;

import core.Component;
import core.Coordinate;
import factory.ComponentInterface;

public class Vessel implements ComponentInterface {
	private int orientation;
	private final Coordinate size = new Coordinate(40, 150);
	private Component component;
	private final int priority = 4;
	
	public Vessel() {
		component = new Component(new Coordinate(0, 0), new Coordinate(0, 0));
		this.orientation = SWT.UP;
	}

	public Vessel(Coordinate position, Coordinate size, int orient) {
		component = new Component(position, size);
		this.orientation =orient;
	}

	public int getOrientation() {
		return orientation;
	}

	public void setOrientation(int orientation) {
	}

	public Coordinate getSize() {
		return size;
	}

	public boolean setSize(Coordinate size) {
		return true;
	}

	public Coordinate getPosition() {
		return component.getPosition();
	}

	public void setPosition(Coordinate position) {
		component.setPosition(position);
	}
	
	public int getPriority() {
		return priority;
	}
}